package com.zhanggm.s3.house.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhanggm
 * @since 2023-07-21
 */
@Data
@Document(indexName = "house")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class House implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @TableId(value = "house_id", type = IdType.AUTO)
    private Integer houseId;

    /**
     * 楼盘Id
     */
    private Integer estateId;

    /**
     * 房源编号
     */
    private String houseType;

    /**
     * 房源编号
     */
    private String houseImg;

    /**
     * 房源编号
     */
    private String houseNumber;

    /**
     * 所在楼层
     */
    private Integer buildingFloor;

    /**
     * 建筑面积
     */
    private BigDecimal buildingArea;

    /**
     * 户型结构
     */
    private String structure;

    /**
     * 房屋朝向
     */
    private String orientation;

    /**
     * 装修情况
     */
    private String decorationStatus;

    /**
     * 房源状态
     */
    private Integer status;

    /**
     * 供暖方式
     */
    private String heatingMode;


    @TableField(exist = false)
    private String estateName;

    @TableField(exist = false)
    private String facilityNames;

    @TableField(exist = false)
    private List<Integer> facilityIdList;


}
